<div class="widget-box">  
  <div class="widget-title title-bar">
    <h3>
      <span>{{widget_title}}</span>
    </h3>
  </div>
    
  <div class="widget-content">
    <form role="form" class="form-horizontal" name="form"  ng-submit="update(certificate)">
      <div class="control-group">
        <label class="control-label">名称</label>
        <div class="controls">
          <input type="text" ng-model="certificate.name" placeholder="必填项" required>
        </div>
      </div>

      <div class="control-group">
        <label class="control-label">有效期</label>
        <div class="controls">            
          <input type="number" name="available_months" ng-model="certificate.available_months" placeholder="必填项" integer>
          <span class="">月</span>  
          <span ng-show="form.available_months.$error.integer" class="red">请填写整数</span>          
        </div>
      </div>
      
      <div class="control-group">
        <label class="control-label">初培价格</label>
        <div class="controls">            
          <input type="text" ng-model="certificate.initiate_cost" >
          <span class="">元</span>            
        </div>
      </div>

      <div class="control-group">
        <label class="control-label">复审价格</label>
        <div class="controls">           
          <input type="text" class="form-control" ng-model="certificate.recheck_cost">
          <span class="input-group-addon">元</span>            
        </div>
      </div>
      <div class="control-group">
        <label class="control-label">复审时限</label>
        <div class="controls">           
          <input type="text" class="form-control" ng-model="certificate.recheck_time">
          <span class="input-group-addon">天</span>            
        </div>
      </div>

      <div class="form-actions">          
          <input type="submit" data-disable-with="正在保存" class="btn bg-green" value="保存">         
      </div>
    </form>
  </div>  
</div>